<style type="text/css">

body{background:#eee}
.parent-category{float:left; width:100%; height:auto; min-height:100%;}
.parent-category ul{margin:0; padding:0; width:100%;}
.parent-category ul li{list-style:none; text-align:center; height:50px; line-height:50px; white-space:nowrap; width:100%; border-bottom:1px solid #e0e0e0; position:relative; right:-1px;}
.parent-category ul li.active{border-right:1px solid #fff; z-index: 10000}
.parent-category ul li a{display:inline-block; width:100%; height:100%; text-decoration:none;}
.children-category{width:100%; min-height:100%; height:auto; color: #252525;}
.children-category ul{list-style:none; margin:0; padding:0; overflow-y:auto; overflow-x:hidden; border-left:1px solid #e0e0e0; min-height:100%;}
.children-category ul li{text-align:left; height: 32px; line-height: 32px; padding-left: 10px}
.children-category ul li.delivery-tips{height:25px; line-height:25px; margin-top: -15px; font-size: .65rem; color: #ff2d4b}
.children-category ul li a{display:inline-block; width:100%; height:100%; text-decoration:none;}
.children-category ul li a span{font-size: .6rem; color: #999;}
.children-category .block{display:block; color:#ef1e15; font-size:.6rem;}
.fe-floatright-bottom a {
    display: block;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 100%;
    background-color: #ff9999;
    color: #fff;
    line-height: 0.7rem;
	font-size:0.45rem;
    margin: 0.5rem auto;
    margin-right: 0;
}
.fe-floatright-bottom a .icon {
    color: #fff;
    font-size: 0.6rem;
    height: 0.6rem;
	line-height: 1rem;
    opacity: 1;
}
.fui-tab-scroll .item a {color:#999}
.fui-tab-scroll .item.on,.fui-tab-scroll .item.on a{color:#333;font-weight: 400;position: relative;font-size:0.8rem}
.fui-tab-scroll .item.on:before {content: ""; height: 2px; width: 40%; background: #4491F1; position: absolute; bottom:0; left: 30%}
.fui-tab-scroll .item.active{color:#4491F1;}
.yuyue-duan {border: 1px solid #ddd;border-radius: 4px;padding:0.2rem;height:auto;width:90px;margin:8px;font-size:0.6rem;text-align:center;}
.weui_cells_radio2 .weui_check:checked + .weui_icon_checked:before {
  color: #4491F1;
}
.red {color: #4491F1;}
.fui-btn-c {
    height: auto;
    background: #f2f2f2;
    margin: 0.6rem 0.3rem;
    padding: 0.6rem;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
	justify-content:center;
    align-items: center;
	color:#4491F1;
    position: relative;
	border-radius:1rem;
}

.fui-btn-c .icon {
	font-size:1rem;
	padding-right:0.3rem;
	text-align:right;
}

.fui-btn-c .info {
	text-align:left;
    padding-right: 0.2rem;
    font-size: 0.75rem;
}

.fui-btn-c .info p {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
</style>

<div class="parentDiv" style="margin-bottom:3rem">
<div class="div1">
<div class="fe-mod-9" style="height:14rem;min-height:6rem">
     <div id="l-map" style="height: 14rem;padding:0px 0px;"></div>
	<div class="group-top" style="background:rgba(0,0,0,0.3);position: absolute;top:5rem;height:10rem;width:100%">
     <div class="fui-list jump text-center">
          <a class="fui-list-inner" href="">
             <div class="title" style="color: #fff;margin:0.8rem 0 0 0">{{pagedata.store.title}}</div>
             <div class="subtitle" style="color: #fff;font-size:0.5rem">{{pagedata.store.desc}}</div>
           </a>
      </div>
	</div>
    <div class="fe-mod-9-shoplogo" style="top:2rem"> 
        <div class="fe-mod-9-shoplogo-img" style="">
            <img src="{{tomedia(pagedata.store.logo) || '../core/resource/images/nopic.jpg'}}">
        </div>
    </div>
</div>
<div ng-if="pagedata.store.bannner.length>0" id="carousel-container" class="carousel slide"  style="position:absolute;top:8.5rem;width:80%;left:10%;border-radius:0.5rem" data-role="carousel" data-param-auto="true">
			<div class="carousel-inner" role="listbox" style="height:5rem">
				<div ng-class="{'item':1,'active':$index==0}" ng-repeat="item in pagedata.store.bannner" style="height:5rem">
					<a href="javascript:;" ng-click="access_json(item.url)">
						<img src="{{tomedia(item.image) || '../core/resource/images/banner-1.jpg'}}" style="display: block; width: 100%; height: 100%;border-radius:0.5rem">
					</a>
				</div>
			</div>
			<style>
					.fui-swipe-page .fui-swipe-bullet {background: {background}; opacity: {opacity};}
					.fui-swipe-page .fui-swipe-bullet.active {opacity: 1;}
			</style>
			<div id="carousel-jinyun" class="fui-swipe-page" style="padding: 0 5px; bottom: 10px; ">
				<div class="fui-swipe-bullet" ng-repeat="item in pagedata.store.bannner" ng-class="{'active':$index==0}" data-target="#carousel-container" data-slide-to="{{$index}}"></div>
			</div>
</div>
<div ng-if="pagedata.notices.length>0" class="fui-notice">
			<div class="image"><img src="../core/resource/images/diy/hotdot.jpg"></div>
			<div class="icon"><i class="fa fa-volume-up" style="font-size: 0.7rem;"></i></div>
			<div class="text">
				<ul>
						<li ng-repeat="item in pagedata.notices">
							<a href="javascript:;" ng-click="access_json('core/article.list/detail/id='+item.id)">{{item.title}}</a>
						</li>
				</ul>
			</div>
</div>
<div class="fui-tab fui-tab-danger" style="font-size:0.65rem">
    <a ng-class="{'external':1,' active':pagedata.showworker!=1}" href="javascript:" ng-click="pagedata.showworker=0">详情</a>
</div>
	<div ng-if="pagedata.showworker!=1" class="weui_cells weui_cells_access" style="margin-top:0">        
            <a class="weui_cell" ng-click="pagedata.openLocation(pagedata.store);">
                <div class="weui_cell_hd"><i class="icon jinyunicon icon-map" style="font-size:0.8rem"></i> 校区地址</div>
                <div class="weui_cell_bd weui_cell_primary">
                    <span>[{{pagedata.store.area_title}}] {{pagedata.store.address}}</span>
                </div>
				<div class="weui_cell_ft">
                </div>
            </a>
			<a class="weui_cell" ng-click="pagedata.openLocation(pagedata.store);">
                <div class="weui_cell_hd"><i class="icon jinyunicon icon-map" style="font-size:0.8rem"></i> 乘车线路</div>
                <div class="weui_cell_bd weui_cell_primary">
                    <span>{{pagedata.store.xianlu || '无'}}</span>
                </div>
				<div class="weui_cell_ft">
                </div>
            </a>
			<a class="weui_cell" href="tel:{{pagedata.store.mobile}}">
                <div class="weui_cell_hd"><i class="icon jinyunicon icon-phone" style="font-size:0.8rem"></i> 电话</div>
                <div class="weui_cell_bd weui_cell_primary">
                    <span>{{pagedata.store.mobile || '无'}}</span>
                </div>
				<div   class="weui_cell_ft">
                </div>
            </a>
			<div class="weui_cells_title" style="padding-left:0"><i class="icon jinyunicon icon-gonggao" style="font-size:0.8rem"></i> 校区简介</div>
			<article class="weui_article" ng-bind-html="trust(pagedata.store.content)">
					
			</article>
	</div>
	<div ng-if="pagedata.showworker==1">
		<div class="fui-list-group usergroup" ng-repeat="item in pagedata.list">
            <div class="fui-list">
                <div class="fui-list-media userlogo" href="javascript:;" ng-click="access_json('jy_kexie/worker_list/detail/id='+item.id)">
                    <img class="round" ng-src="{{tomedia(item.headimg) || '../core/resource/images/nopic.jpg'}}">
                </div>
               <div class="fui-list-inner userinfo" style="margin-top:0.16rem" href="javascript:;" ng-click="access_json('jy_kexie/worker_list/detail/id='+item.id)">
                    <div class="title" style="font-size:0.76rem;"><span>{{item.name}}</span><span style="float:right;color:red;font-size:0.65rem">{{item.classttile || '无班'}}</span></div>
					<div class="subtitle" style="-webkit-line-clamp:2;font-size:0.65rem">
						{{item.remark || '该老师还未来的及填写个人简介'}}
					</div>
						<div class="store-star"><i class="icon jinyunicon icon-bussinessman"></i><span style="margin-left:0.2rem">{{item.levtitle ||'无'}}</span></div>
					<div class="subtitle" style="font-size:0.55rem">
						课程：{{item.lessontitle || '无'}}
					</div>
					<div class="weui_btn_all_sm" style="background:#4491F1" href="javascript:" ng-click="access_json('jy_kexie/worker_list/detail/id='+item.id)">详情资历</div>
                </div>
            </div>
		</div>
		<div ng-show="pagedata.loading" class='infinite-loading'><span class='fui-preloader'></span><span style="margin-left:1.5rem"> 正在加载...</span></div>
		<div class="content-empty" ng-show="!pagedata.list || pagedata.list.length == 0 ">
		  <i class="icon jinyunicon icon-cry" style="width: 6rem;margin-bottom: 0.5rem;"></i><br/><p style="color: #999;font-size: .75rem">暂时没有老师！</p>
		</div>
	</div>
	<div class="weui_btn_area" style="margin:1rem 4rem 3.8rem 4rem">
		<a ng-if="pagedata.user.storeid>0" class="weui_btn weui_btn_red" style="border-radius:1rem" href="javascript:" ng-click="access_json('jy_kexie/mylesson_log/')">我的课程</a>
		<a ng-if="!pagedata.user.storeid || pagedata.user.storeid==0" class="weui_btn weui_btn_red" style="border-radius:1rem" href="javascript:" ng-click="pagedata.showorder_type=true">我要报名</a>
	</div>
</div>
</div>
<div ng-if="pagedata.showorder_type" class="popup">
	<div class="popup-body">
		<div class="popup-bottom" style="height:auto;overflow-y:scroll">
			<i class="closed icon icon-cuowu" ng-click="pagedata.showorder_type=false"></i>
			<div class="fui-page-title" style="margin-top:1rem;padding:0 0.6rem;text-align:left">
			  <div style="font-size:0.8rem">{{pagedata.store.title}}</div>
			  <div><span class="subtitle"><i class="icon icon-map" style="font-size:0.6rem;color:#4491F1"></i> {{pagedata.store.address || '校区详细地址'}}</span></div>
			</div>
			<div class="weui_cells weui_cells_radio2">
				<label ng-repeat="item in pagedata.lessons" class="weui_cell weui_check_label" for="x{{$index}}">
					<div class="weui_cell_hd" href="javascript:;" ng-click="access_json('jy_kexie/create//storeid='+pagedata.store.id+'&lessonid='+item.id)">
						<input type="radio" class="weui_check" ng-model="pagedata.post.lesson_id" ng-checked="{{pagedata.post.lesson_id==item.id}}" id="x{{$index}}">
						<span class="weui_icon_checked"></span>
					</div>
					<div ng-class="{'weui_cell_bd weui_cell_primary':1,'red':pagedata.post.lesson_id==item.id}">
						<div>{{item.title}}</div>
						<div>Sel Lesson</div>
					</div>
				</label>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
scope.show = function(){
 window.scope.pagedata.show=1;
scope.$apply();
}
</script>
<script language="javascript">
wx.ready(function () {
	scope.scancode = function(){
			wx.scanQRCode({
				needResult: 1, // 默认为0，扫描结果由微信处理，1则直接返回扫描结果，
				scanType: ["qrCode","barCode"], // 可以指定扫二维码还是一维码，默认二者都有
				success: function (res) {
					var result = res.resultStr; // 当needResult 为 1 时，扫码返回的结果
					location.href= result;					
				}
			});
	};
});
scope.pagedata.openLocation=function(item){
	wx.openLocation({
	latitude: item.lat_lng.lat, // 纬度，浮点数，范围为90 ~ -90
	longitude: item.lat_lng.lng, // 经度，浮点数，范围为180 ~ -180。
		name: item.province+item.city+item.district, // 位置名
		address: item.address, // 地址详情说明
		scale: 20, // 地图缩放级别,整形值,范围从1~28。默认为最大
		infoUrl: '', // 在查看位置界面底部显示的超链接,可点击跳转
		success:function(){
			//alert(1111);
		}
	});
}
</script>
	<script type="text/javascript">
	// 百度地图API功能
	require(['map'], function(BMap){
		var map = new BMap.Map("l-map");
		var lng=scope.pagedata.store.lat_lng.lng ? scope.pagedata.store.lat_lng.lng : '117.126399';
		var lat=scope.pagedata.store.lat_lng.lat ? scope.pagedata.store.lat_lng.lat : '36.656554';
		var point = new BMap.Point(lng, lat);
		map.centerAndZoom(point, 15);
		// 编写自定义函数,创建标注
		function addMarker(point){
		  var marker = new BMap.Marker(point);
		  map.addOverlay(marker);
		}
		addMarker(point);
	});
	</script>
<div ng-include="sys_html('common/pluginnav',true)"></div>